import prompt from '@system.prompt';
export default {
  data: {
    text: 'hello',
    num: 520
  },
  onReady() {
//    console.log(this.$app.$def.x)

//    setTimeout(() => {
//      this.text = 'world'
//    }, 3000)

    setTimeout(() => {
      prompt.showDialog({
        title: 'Title Info',
        message: 'Message Info',
        buttons: [
          {
            text: 'button',
            color: '#666666',
          },
        ],
        success: function(data) {
          console.log('dialog success callback，click button : ' + data.index);
        },
        cancel: function() {
          console.log('dialog cancel callback');
        },
      });
    }, 100)
  },

  handleNum() {
    console.log(100)
  }
}
